/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eyrolles.modele;

import eyrolles.Employe;
import java.util.ArrayList;
import javax.sql.DataSource;

/**
 *
 * @author scriptoff
 */
public interface ModeleInterface {

    void deleteEmploye(String username) throws ModeleAccesIndisponibleException;

    ArrayList<Employe> getEmployes() throws ModeleAccesIndisponibleException;

    String getUser(String username, String password) throws ModeleAccesIndisponibleException, ModeleUnknownUserException;

    void setDataSource(DataSource dS);

    void updateUser(Employe emp) throws ModeleAccesIndisponibleException;
    
    void insertUser(Employe emp) throws ModeleAccesIndisponibleException;
    
    Employe buildEmploye(String username)
            throws ModeleAccesIndisponibleException, ModeleUnknownUserException;
    
}
